{yun:}include file="$wapstyle/header_cont.htm"{/yun}
<style>
    .header_h {
        display: none;
    }
    dl, dd, dt, ul, li {
        list-style: none;
        margin: 0;
        padding: 0;
    }
</style>
<div style="height:30px; background:#3366cc"></div>
<div class="redeem_header_box">
    <i class="redeem_header_box_q"></i>
    <div class="redeem_header_photo">
        <img src="{yun:}$user.user_avatar{/yun}" border="0" onerror="showImgDelay(this,'{yun:}$config.sy_weburl{/yun}/app/template/wap/images/r_tx.png',2);">
    </div>
    <div class="redeem_header_info">
        {yun:}if $user{/yun}
        <div class="redeem_header_info_name">Hi , {yun:}$user.username{/yun} 你好 !</div>
		 <em class="redeem_header_info_f">您的{yun:}$config.integral_pricename{/yun}</em> <span class="redeem_header_info_n">{yun:}$statis.integral{/yun}</span>
		{yun:}else{/yun}
        <div class="redeem_header_info_name">Hi , 你好 !</div>
        <div class="redeem_header_info_login">请
            <a href="{yun:}url m=wap c=login{/yun}" class="redeem_header_info_login_c">登录</a><span class="redeem_header_info_login_line">|</span>
            <a href="{yun:}url m=wap c=register{/yun}" class="redeem_header_info_login_c">注册</a>
        </div>
       {yun:}/if{/yun}
    </div>

    <div class="redeem_header_nav">
        <div class="redeem_header_nav_c">
            <ul class="redeem_header_nav_list">
                {yun:}if !$user.user_id{/yun}
                <!--<li>-->
                    <!--<a href="{yun:}url m=wap c=login{/yun}" class="redeem_header_nav_icon redeem_header_nav_icon_all">礼品列表</a>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<a href="{yun:}url m=wap c=login{/yun}" class="redeem_header_nav_icon redeem_header_nav_icon_jl">兑换记录</a>-->
                <!--</li>-->
                <!--<li>-->
                    <!--<a href="{yun:}url m=wap c=login{/yun}" class="redeem_header_nav_icon redeem_header_nav_icon_zjf">赚积分</a>-->
                <!--</li>-->
                <li>
                    <a href="javascript:login_java()" class="redeem_header_nav_icon redeem_header_nav_icon_all">我能兑换</a>
                </li>
                <li>
                    <a href="javascript:login_java()" class="redeem_header_nav_icon redeem_header_nav_icon_jl">兑换记录</a>
                </li>
                <li>
                    <a href="javascript:login_java()" class="redeem_header_nav_icon redeem_header_nav_icon_zjf">赚积分</a>
                </li>
                {yun:}else{/yun}
                <li>
                    <a href="{yun:}url m=wap c=redeem a=list intinfo=$statis.integral user_id=$user.user_id{/yun}" class="redeem_header_nav_icon redeem_header_nav_icon_all">我能兑换</a>
                </li>
                <li>
                    <a href="{yun:}url m=wap{/yun}/member/index.php?c=reward_list&back=1&user_id={yun:}$user.user_id{/yun}" class="redeem_header_nav_icon redeem_header_nav_icon_jl">兑换记录</a>
                </li>
                <li>
                    <a href="{yun:}url m=wap{/yun}/member/index.php?c=integral&back=1&user_id={yun:}$user.user_id{/yun}" class="redeem_header_nav_icon redeem_header_nav_icon_zjf">赚积分</a>
                </li>
                {yun:}/if{/yun}
            </ul>
        </div>
    </div>
</div>

<!--banner-->
<div class="redeem_index_banner" style="height: auto;">
    <!--<img src="{yun:}$config.sy_weburl{/yun}/app/template/wap/images/6.png"/>-->
    <div class="swiper-container" id="imgswiper">
        <div class="swiper-wrapper">
            {yun:}adlist classid=70 item="lunbo" key=key {/yun}
            <div class="swiper-slide">
                <a href="{yun:}$lunbo.src{/yun}"><img src="{yun:}$lunbo.pic{/yun}" width='100%' /></a>
            </div>
            {yun:}/adlist{/yun}
        </div>
    </div>
</div>

<!--<div class="redeem_hot">-->
    <!--<div class="redeem_hot_h1"><span class="redeem_hot_s">热门兑换</span>-->
        <!--<a href="{yun:}url m=wap c=redeem a=list   hot=1{/yun}" class="redeem_hot_more">更多礼品 ></a>-->
    <!--</div>-->
    <!--<div class="redeem_hotlist_box">-->
        <!--<ul class="redeem_hotlist">-->
            <!--{yun:}redeem item=val hot=1 limit=10 islt=6{/yun}-->
            <!--<li>-->
                <!--<div class="redeem_hot_li">-->
                    <!--<div class="redeem_hot_pic">-->
                        <!--<a href="{yun:}$val.url{/yun}"><img src="{yun:}$val.pic{/yun}" /></a>-->
                    <!--</div>-->
                    <!--<div class="redeem_hot_name">-->
                        <!--<a href="{yun:}$val.url{/yun}">{yun:}$val.name|mb_substr:0:10:'utf-8'{/yun}</a>-->
                    <!--</div>-->
                    <!--<div class="redeem_hot_jf"><span class="redeem_hot_jf_s">{yun:}$val.integral{/yun}{yun:}$config.integral_pricename{/yun}</span></div>-->
                <!--</div>-->
            <!--</li>-->
            <!--{yun:}/redeem{/yun}-->
        <!--</ul>-->
    <!--</div>-->
<!--</div>-->
<!--<div class="redeem_jx_box mt10">-->
    <!--<div class="redeem_jx_h1 "><span class="redeem_jx_s">精选好货</span>-->
        <!--<a href="{yun:}url m=wap c=redeem a=list  rec=1{/yun}" class="redeem_hot_more">更多礼品 ></a>-->
    <!--</div>-->

    <!--<ul class="redeem_list">-->
        <!--{yun:}redeem item=rec rec=1 limit=9 islt=6{/yun}-->
        <!--<li>-->
            <!--<div class="redeem_list_b">-->
                <!--<div class="redeem_list_pic">-->
                    <!--<a href="{yun:}$rec.url{/yun}"><img src="{yun:}$rec.pic{/yun}" width="90" height="90" /></a>-->
                <!--</div>-->
                <!--<div class="redeem_list_name">-->
                    <!--<a href="{yun:}$rec.url{/yun}">{yun:}$rec.name|mb_substr:0:5:'utf-8'{/yun}</a>-->
                <!--</div>-->
                <!--<div class="redeem_list_money">{yun:}$rec.integral{/yun} <span class="redeem_list_money_n">{yun:}$config.integral_pricename{/yun}</span></div>-->
            <!--</div>-->
        <!--</li>-->

        <!--{yun:}/redeem{/yun}-->
    <!--</ul>-->

<!--</div>-->

<!--<div class="clear"></div>-->

<!--<div class="wap_store_ps">-->
    <!--<div class="wap_store_ps_c">-->

        <!--<div class="wap_store_ps_rt">-->
            <!--<div class="wap_store_ps_rt_wr sxl" style="height:35px;overflow:hidden;">-->
                <!--<ul class="sxlist">-->
                    <!--{yun:}foreach item=v key=j from=$lipin{/yun}-->
                    <!--<li>-->
                        <!--<div>{yun:}$v.username{/yun} 会员 花了 <b style="color:#093">{yun:}$v.integral{/yun}</b> {yun:}$config.integral_priceunit{/yun}{yun:}$config.integral_pricename{/yun}</div>-->
                        <!--<div> 兑换了<i><a href="{yun:}url m=wap c=redeem a=show id='`$v.gid`'{/yun}" style="color:#f60">{yun:}$v.name{/yun}</a></i> </div>-->
                    <!--</li>-->
                    <!--{yun:}/foreach{/yun}-->
                <!--</ul>-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->

<div class="clear"></div>

<div class="redeem_jx_box mt10">
    {yun:}if !$user.user_id{/yun}
    <div class="redeem_jx_h1 "><span class="redeem_new_s">最新礼品</span>
        <a href="javascript:login_java()" class="redeem_hot_more">更多礼品 ></a>
    </div>
    <ul class="redeem_list">
        {yun:}redeem item=v order='sdate' sort='desc' islt=7 limit=6 user_id=$user.user_id{/yun}
        <li>
            <div class="redeem_list_b">
                <div class="redeem_list_pic">
                    <a href="javascript:login_java()"><img src="{yun:}$v.pic{/yun}" width="90" height="90" /></a>
                </div>
                <div class="redeem_list_name">
                    <a href="javascript:login_java()">{yun:}$v.name|mb_substr:0:7:'utf-8'{/yun}</a>
                </div>
                <div class="redeem_list_money">{yun:}$v.integral{/yun} <span class="redeem_list_money_n">{yun:}$config.integral_pricename{/yun}</span></div>
            </div>
        </li>
        {yun:}/redeem{/yun}
    </ul>
    {yun:}else{/yun}
    <div class="redeem_jx_h1 "><span class="redeem_new_s">最新礼品</span>
        <a href="{yun:}url m=wap c=redeem a=list order=sdate sort=desc user_id=$user.user_id{/yun}" class="redeem_hot_more">更多礼品 ></a>
    </div>
    <ul class="redeem_list">

        {yun:}redeem item=v order='sdate' sort='desc' islt=7 limit=6 user_id=$user.user_id{/yun}
        <li>
            <div class="redeem_list_b">
                <div class="redeem_list_pic">
                    <a href="{yun:}$v.url{/yun}"><img src="{yun:}$v.pic{/yun}" width="90" height="90" /></a>
                </div>
                <div class="redeem_list_name">
                    <a href="{yun:}$v.url{/yun}">{yun:}$v.name|mb_substr:0:7:'utf-8'{/yun}</a>
                </div>
                <div class="redeem_list_money">{yun:}$v.integral{/yun} <span class="redeem_list_money_n">{yun:}$config.integral_pricename{/yun}</span></div>
            </div>
        </li>
        {yun:}/redeem{/yun}
    </ul>
    {yun:}/if{/yun}


    <!--<ul class="redeem_list">-->

        <!--{yun:}foreach item=v from=$goods{/yun}-->
        <!--<li>-->
            <!--<div class="redeem_list_b">-->
                <!--<div class="redeem_list_pic">-->
                    <!--<a href="{yun:}$v.url{/yun}"><img src="{yun:}$v.img{/yun}" width="90" height="90" /></a>-->
                <!--</div>-->
                <!--<div class="redeem_list_name">-->
                    <!--<a href="{yun:}$v.url{/yun}">{yun:}$v.name{/yun}</a>-->
                <!--</div>-->
                <!--<div class="redeem_list_money">{yun:}$v.integral{/yun} <span class="redeem_list_money_n">{yun:}$config.integral_pricename{/yun}</span></div>-->
            <!--</div>-->
        <!--</li>-->
        <!--{yun:}/foreach{/yun}-->
    <!--</ul>-->
</div>

<style>
    .tips {
        display: none;
    }
</style>
<div class="wap_store">

    <div class="clear"></div>

    <script src="{yun:}$wap_style{/yun}/js/prefixfree.min.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
    <script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
    <script src="{yun:}$wap_style{/yun}/js/layer/layer.m.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
    <script src="{yun:}$wap_style{/yun}/js/public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
    <script src="{yun:}$wap_style{/yun}/js/redeem.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
    <script src="{yun:}$wap_style{/yun}/js/jquery.flexslider-min.js?v={yun:}$config.cachecode{/yun}"></script>
    <link rel="stylesheet" href="{yun:}$wap_style{/yun}/js/swiper/swiper.min.css?v={yun:}$config.cachecode{/yun}" type="text/css" />
    <script src="{yun:}$wap_style{/yun}/js/swiper/swiper.min.js?v={yun:}$config.cachecode{/yun}"></script>
    <script type="text/javascript">
        $(function() {
            var myimgswiper = new Swiper('#imgswiper', {
                direction: 'horizontal',
                autoplay: true,
                loop: true
            });
        });
        marquee_l("2000", ".redeem_hotlist");
        marquee("2000", ".sxl .sxlist");
    </script>
    <script>
        function login_java(){
//            var ua = navigator.userAgent.toLowerCase();
//            var yuming = window.location.host;
//            if (/iphone|ipad|ipod/.test(ua)) {
//                window.webkit.messageHandlers.SelectMyAgent.postMessage('123');
//            } else if (/android/.test(ua)) {
//                var img_url = $('#company_img')[0].src; //图片路径
//                var company_name = $('#company_name').text(); //公司名称
//                var job_name = $('#job_name').text(); //职位名称
//                var url = 'http://'+yuming+'/wap/index.php?c=job&a=view&id='+GetRequest().id; //url
//                window.android.SelectMyAgent(img_url,company_name,job_name,url);//对应着title,formId,serviceId
//                // window.WebViewJavascriptBridge.callHandler('webshare','123');
//                //window.WebViewJavascriptBridge.callHandler('seeMore',{query:{id:this.goodsData.goodslistId}});
//            }
            alert("你尚未登陆或登陆超时！");
            return;
        }

    </script>
    {yun:}include file="$wapstyle/footer.htm"{/yun}